<!--
  @author tanbiao
  @since 2019-11-21 18:56:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    -->
<div class="layui-card-body" th:fragment="query">
    <!--用于保存或传值的隐藏表单元素
        置于form标签内的最上方
        -->

    <!--每个zmn-form-item一行，每行4列
       支持页面自适应，1280分辨率下不折行
       -->
    <div class="zmn-form-item">

        <!--默认情况下标签item-inline占据1列，
            加入样式col2，表示该item-inline占据2列，用于支持多级联动下拉框
            -->
        <input type="hidden" name="productId" th:value="${vo.productId}"/>
        <input type="hidden" name="tariffId" th:value="${vo.tariffId}"/>
        <input type="hidden" name="itemId" th:value="${vo.itemId}"/>
        <input type="hidden" name="groupId" th:value="${vo.groupId}"/>
        <input type="hidden" name="priceStandard" th:value="${vo.priceStandard}"/>

        <div class="item-inline">
            <label class="inline-label">省份：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="provinceId" id="provinceId" lay-filter="provinceId" lay-search>
                            <option value="" th:selected="${0 == vo.provinceId}">全部</option>
                            <option th:value="${item.areaId}"
                                    th:text="${item.name}"
                                    th:selected="${item.areaId == vo.provinceId}"
                                    th:each="item:${provinceList}"
                                    th:attr="provincemsg=${item.areaId+','+item.name+','+item.code}">省份
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">城市：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="cityId" id="cityId" lay-filter="cityId" lay-search>
                            <option value="" th:selected="${0 == vo.cityId}">全部</option>
                            <option th:value="${item.areaId}"
                                    th:text="${item.name}"
                                    th:selected="${item.areaId == vo.cityId}"
                                    th:each="item:${cityList}"
                                    th:attr="citymsg=${item.areaId+','+item.name+','+item.code}">城市
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">销售价：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="price" name="price" lay-filter="price" value="0"  lay-search="">
                            <option value="0" th:selected="${0 == vo.price}">-选择-</option>
                            <option th:value="${item}" th:selected="${item == vo.price}" th:text="${#numbers.formatDecimal(item / 100.0, 1, 2)}"
                                    th:each="item:${priceList}">销售价
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-submit">
            <!--查询与重置按钮
           查询按钮lay-filter属性统一定义为zmn-form-submit
           如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
           -->
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">查询</i> </button>
        </div>

        <div class="layui-split">&nbsp;</div>
        <div class="layui-split">&nbsp;</div>

    </div>

</div>
